#include<stdio.h>
int main()
{
	int i=1,s=1;
	printf("p=1");
	while(i<=5)
	{
		printf("*%d",i); 
		s=s*i;
		i++;
	}
	printf("\n");
	printf("p=%d\n",s);
	return 0;
}